Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Handling of low funds cases in the UI (part-2) #568

Merged
merged 4 commits into from
Dec 11, 2024

Conversation

mohandast52
Copy link
Collaborator

@mohandast52 mohandast52 commented Dec 11, 2024

Proposed changes

Design

Screensho3M

Changes

Screenshot

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@mohandast52 mohandast52 added the enhancement New feature or request label Dec 11, 2024
@mohandast52 mohandast52 self-assigned this Dec 11, 2024
Base automatically changed from mohan/handling-low-fees to feature/agent-memeooorr December 11, 2024 13:02
@mohandast52 mohandast52 marked this pull request as ready for review December 11, 2024 13:14
{!hasEnoughEthForInitialFunding && (
<div>
{UNICODE_SYMBOLS.BULLET}{' '}
<Text strong>{nativeTokenRequired}</Text> - for trading.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's "for trading" only for trader agent I presume. should we have different text based on agent type?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not sure, but I’ll ask Iason/Roman about it.


const { selectedAgentConfig } = useServices();
const { evmHomeChainId: homeChainId } = selectedAgentConfig;
const nativeTokenSymbol = getNativeTokenSymbol(homeChainId);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tiny, could move this to nativeTokenRequired useMemo

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, I will update this in the next PR.

@mohandast52 mohandast52 merged commit 3aa08fa into feature/agent-memeooorr Dec 11, 2024
4 of 5 checks passed
@mohandast52 mohandast52 deleted the mohan/handling-low-fees-2 branch December 11, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants